﻿using JmShared;
using SuperWebSocket.SubProtocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSocketServer.Filters;

namespace WebSocketServer.Commands
{
    [LoggedInValidationFilter(Order = 0)]
    [LogTimeCommandFilter(Order = 1)]
    public class RequestGroupMessages : JsonSubCommand<JiveClientSession, MessageRequest>
    {

        protected override void ExecuteJsonCommand(JiveClientSession session, MessageRequest request)
        {
            session.ChatClient.SendStoredGroupMessages(request);
        }
    }
}
